package com.lagou.subjectfour;

import java.io.Serializable;

/**
 * 用户信息类
 */
public class UserMessage implements Serializable {

    private static final long serialVersionUID = -1210758041992031625L;
    private User user;
    private String type;

    public UserMessage(User user, String type) {
        setUser(user);
        setType(type);
    }

    @Override
    public String toString() {
        return "UserMessage{" +
                "user=" + user +
                ", type='" + type + '\'' +
                '}';
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
